function addMenu() {
	createMenu();
};
function createMenu() {
	var menu = document.getElementsByName('Menu');
	for ( var i = 0; i < menu.length; i++) {
		var menuHead = menu[i].getElementsByTagName('div');
		var menuBody = menu[i].getElementsByTagName('ul');
		if(menuBody[0] == null)
			continue;
		addShowAndHideAction(menuHead[0], menuBody[0]);
	}
}
function addShowAndHideAction(srcO, oO) {
	srcO.$object = oO;
	srcO.onclick = function() {
		if (this.$object.style.display == 'block') {
			this.$object.style.display = 'none';
		} else {
			this.$object.style.display = 'block';
		}
	};
}
function addOnclickListener(actionObject, listener) {
	actionObject.onclick = function() {
		listener.onClickCallBack();
	};
}
function onClickAction(url){
	window.location = url;
}